﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CApAPPJointsData
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.ComponentModel;


namespace DnProcessSimulateCommands;

public class CApAPPJointsData : INotifyPropertyChanged
{
  private double m_weight = 8.0;

  public CApAPPJointsData(string i_joint, double i_weight)
  {
    this.Joint = i_joint;
    this.m_weight = i_weight;
  }

  public event JointDataDidChangedEventHandler JointDataDidChanged;

  public string Joint { get; set; }

  public double Weight
  {
    get => this.m_weight;
    set
    {
      this.m_weight = value;
      this.NotifyPropertyChanged(nameof (Weight));
      if (this.JointDataDidChanged == null)
        return;
      this.JointDataDidChanged((object) this, new EventArgs());
    }
  }

  public double UpperBound => 10.0;

  public double LowerBound => 0.0;

  public event PropertyChangedEventHandler PropertyChanged;

  protected void NotifyPropertyChanged(string info)
  {
    if (this.PropertyChanged == null)
      return;
    this.PropertyChanged((object) this, new PropertyChangedEventArgs(info));
  }
}
